// components/user/GeneralCard/GeneralCard.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    data: {
      type: Object,
      value: {}
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    profileTap: function(options) {
      wx.navigateTo({
        url: '/pages/user/userDetail/userDetail?user_id=' + this.data.data.userid,
      })
    },
    textTap: function(options) {
      wx.navigateTo({
        url: '/pages/posts/postDetail/postDetail?post_id=' + this.data.data.postid,
      })
    }
  }
})